<?php
    if(isset($cate_name) && $cate_name != '')
                        {
                            foreach ($cate_name as $ct)
                            {   
                               echo "<h2 style = 'margin-left: 10px; margin-top: -25px;'>Category: ".$ct['cate_name']." <span class='title-bottom'>&nbsp;</span></h2>";
                            
                            }
                        }
?>
<?php
    echo "<div id='page'>";
    echo $page_link; 
    echo "</div>";
?>
<?php 

foreach($list_pro as $product) {?>
<div class="product">
        <a href="<?php echo $baseURL;?>default/product/details/<?php echo $product['pro_id'];?>#cate" title="<?php echo $product['pro_info'];?>">
                <span class="title"><?php echo $product['pro_name'];?></span>
                <img src=<?php echo $product['pro_img_src'];?> alt="Images" height="150" width="180"/>
                <span class="number">Price: <del> <?php echo "$".$product['pro_price'];?></del></span>
                <span class="price"><span>Sale: </span><?php echo "$".$product['pro_sale'];?></span>
                
        </a>
    <div class="link">
        <a href="<?php echo $baseURL;?>default/product/details/<?php echo $product['pro_id'];?>#cate">Details</a> -- <a href="<?php echo $baseURL;?>default/shopping_cart/buy/<?php echo $product['pro_id'];?>#cate" class="buy">BUY NOW</a>
    </div>
</div>
<?php
    }
    echo "<div id='page'>";
    echo $page_link; 
    echo "</div>";

                        
                    	